package com.demo.salary.transactionimplementation;

import com.demo.salary.payrolldatabase.PayrollDatabase;
import com.demo.salary.transactionapplication.Transaction;

public class DeleteEmployeeTransaction implements Transaction {
    int empId;

    public DeleteEmployeeTransaction(int empId) {
        this.empId = empId;
    }

    @Override
    public void execute() {
        PayrollDatabase.delEmployee(empId);
    }
}
